io.appManager.myApplicationApplicationinterface
Object describing an app.
Properties (19)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| allowMultiple⚓︎ | boolean | true | If |
|
| autoStart⚓︎ | boolean | x | If |
|
| available⚓︎ | boolean | x | If |
|
| caption⚓︎ | string | x | x | Application caption. |
| container⚓︎ | string | x | Container identifier. |
|
| icon⚓︎ | string | x | x | Application icon. |
| iconURL⚓︎ | string | x | URL of the app icon. |
|
| instances⚓︎ | Instance[] | x | Instances of that app. |
|
| isShell⚓︎ | boolean | false | If |
|
| keywords⚓︎ | string[] | x | x | An array of keywords for discovering the app more easily. |
| mode⚓︎ | WindowMode | "unknown" | x | Mode of the app window.
Possible values are |
|
| name⚓︎ | string | x | Application name. |
|
| sortOrder⚓︎ | number | x | Sort indicator used when ordering apps in a list. |
|
| title⚓︎ | string | x | x | Application title. |
| type⚓︎ | string | x | Type of the app. |
|
| userProperties⚓︎ | PropertiesObject | x | Generic object for passing properties, settings, etc., in the for of key/value pairs. |
|
| version⚓︎ | string | x | x | Application version. |
| windowSettings⚓︎ | WindowSettings | x | Describes the settings for the app window. |
8 Methods
getConfiguration()⚓︎
() => Promise<Definition>
Retrieves the definition of the current app.
io.Connect Browser 4.3onAvailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when the app becomes available.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onChanged()⚓︎
(callback: (app: Application) => any) => void
Notifies when the app configuration is changed.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onInstanceStarted()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
Subscribes for the event which fires when an application instance is started.
Note: unlike the API's onInstanceStarted() the Application's onInstanceStarted() method doesn't replay the already started instances.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (instance: Instance) => any | Callback function to handle the newly started instance. |
Returns
Unsubscribe function.
onInstanceStopped()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onRemoved()⚓︎
(callback: (app: Application) => any) => void
Notifies when the app is removed.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onUnavailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when the app becomes unavailable.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
start()⚓︎
(context?: object, options?: ApplicationStartOptions) => Promise<Instance>
Returns the newly started application instance.
Parameters (2)
| Name | Type | Required | Description |
|---|---|---|---|
| context⚓︎ | object | x | The initial context of the application. |
| options⚓︎ | ApplicationStartOptions | x | Options object in which you can specify window setting (that will override the default configuration settings), as well as other additional options. |
Returns
Promise that resolves with the newly started application instance.